/*
* Conditions Of Use
*
* This software was developed by employees of the Sigmatrix(Beijing) Corporation.
* This software is provided by sigmatrix as a service and is expressly
* provided "AS IS."  Sigmatrix MAKES NO WARRANTY OF ANY KIND, EXPRESS, IMPLIED
* OR STATUTORY, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTY OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT
* AND DATA ACCURACY.  Sigmatrix does not warrant or make any representations
* regarding the use of the software or the results thereof, including but
* not limited to the correctness, accuracy, reliability or usefulness of
* the software.
*
* Permission to use this software is contingent upon your acceptance
* of the terms of this agreement.
*
*/
package com.sigmatrix.h5.service;

import java.util.List;

import com.sigmatrix.h5.entity.FirstLevelQRCode;
import com.sigmatrix.h5.entity.MultistageLevelQRCode;
import com.sigmatrix.h5.entity.WarehouseStock;
import com.sigmatrix.h5.exception.ServiceException;
import com.sigmatrix.h5.service.common.BaseService;
import com.sigmatrix.h5.web.vo.OutStorageVo;

/**
 *@ClassName: WarehouseStockService
 *@Description: 库存信息业务层接口
 *@author youjun
 *@date 2017-06-14 09:50:39
 */
public interface WarehouseStockService extends BaseService<WarehouseStock> {

	/**
	 *@Title: reduceStockNum
	 *@Description: 根据仓库ID、产品ID、批次号、当前批次出库单品数量、包装单位数量减库存,成功返回"success"
	 *@return String
	 *@author youjun
	 *@date 2017年8月13日 下午3:22:20
	 *@param warehouseId
	 *@param productId
	 *@param singleCount
	 *@param packCount
	 *@param enterpriseCode
	 *@return
	 * @throws ServiceException 
	 */
	String reduceStockNum(int warehouseId, int productId, int singleCount, int packCount,
			String enterpriseCode) throws ServiceException;
	
	String addStockNum(int warehouseId, int productId, int singleCount, int packCount,List<MultistageLevelQRCode> packLevelCodeList, 
			List<FirstLevelQRCode> singleLevelCodeList,OutStorageVo outStorageVo,
			String enterpriseCode) throws ServiceException;

	/**
	 *@Title: addStockNum
	 *@Description: 增加库存
	 *@return String
	 *@author youjun
	 *@date 2017年8月15日 上午1:26:43
	 *@param warehouseId
	 *@param productId
	 *@param batchCode
	 *@param singleCount
	 *@param packCount
	 *@param enterpriseCode
	 *@return
	 *@throws ServiceException
	 */
	String addStockNum(int warehouseId, int productId, String batchCode, int singleCount, int packCount,
			String enterpriseCode) throws ServiceException;

	
}
